package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单主表 订单主表
 *
 * @author WeiZiDong
 */
@Table(name = "`oms_order`")
@Data
@ApiModel("订单主表订单主表")
public class OmsOrder implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "订单id", example = "1")
    private Integer id;
    @Column(name = "`order_no`")
    @ApiModelProperty(value = "订单编号", example = "String")
    private String orderNo;
    @Column(name = "`total_amount`")
    @ApiModelProperty(value = "订单总金额", example = "1.0")
    private BigDecimal totalAmount;
    @Column(name = "`pay_amount`")
    @ApiModelProperty(value = "应付金额（实际支付金额）", example = "1.0")
    private BigDecimal payAmount;
    @Column(name = "`pay_type`")
    @ApiModelProperty(value = "支付方式0-未支付；1-余额；2-微信；3-支付宝", example = "1")
    private Integer payType;
    @Column(name = "`order_serial_number`")
    @ApiModelProperty(value = "订单流水号", example = "String")
    private String orderSerialNumber;
    @Column(name = "`order_time`")
    @ApiModelProperty(value = "下单时间", example = "2019-05-05 17:55:31")
    private Date orderTime;
    @Column(name = "`pay_time`")
    @ApiModelProperty(value = "支付时间", example = "2019-05-05 17:55:31")
    private Date payTime;
    @Column(name = "`pay_status`")
    @ApiModelProperty(value = "支付状态0-待支付；1-已支付", example = "1")
    private Integer payStatus;
    @Column(name = "`packing_fee`")
    @ApiModelProperty(value = "包装费", example = "1")
    private Integer packingFee;
    @Column(name = "`logistics_fee`")
    @ApiModelProperty(value = "物流费", example = "1")
    private Integer logisticsFee;
    @Column(name = "`inspection_fee`")
    @ApiModelProperty(value = "质检费", example = "1")
    private Integer inspectionFee;
    @Column(name = "`site_fee`")
    @ApiModelProperty(value = "场地费", example = "1")
    private Integer siteFee;
    @Column(name = "`profit_expense`")
    @ApiModelProperty(value = "盈利费", example = "1")
    private Integer profitExpense;
    @Column(name = "`take_type`")
    @ApiModelProperty(value = "提货方式0-自提；1-送货上门", example = "String")
    private String takeType;
    @Column(name = "`receiving_address_id`")
    @ApiModelProperty(value = "收货地址ID", example = "String")
    private String receivingAddressId;
    @Column(name = "`refund_status`")
    @ApiModelProperty(value = "退款状态0-未退款；1-退款中；2-已退款；3-已取消", example = "1")
    private Integer refundStatus;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
